package gruppe5.dame.server.main;

import gruppe5.dame.model.DameModel;
import gruppe5.dame.model.DameModelChangedEvent;
import gruppe5.dame.model.DameModelListener;
import gruppe5.dame.model.types.DameGameType;
import gruppe5.dame.model.types.PawnColor;

public class cGame implements DameModelListener {

	public final String sGamename;
	
	public final int iPlayerOneID;
	public int iPlayerTwoID;
	
	public final PawnColor ePlayerOneColor = PawnColor.BLACK;
	public final PawnColor ePlayerTwoColor = PawnColor.WHITE;
	
	public final DameGameType eGameType;
	
	public DameModel model;
	
	public iGameChangedListener listener;
	
	public cGame(String sGamename, int iPlayerOneID, DameGameType _eGameType) {
		this.sGamename = sGamename;
		this.iPlayerOneID = iPlayerOneID;
		this.eGameType = _eGameType;
	}

	
	@Override
	public void dameChanged(DameModelChangedEvent event) {
		// TODO Auto-generated method stub
		listener.gameChanged(event, sGamename);
	}
}
